package se.miun.datatek;

/**
*
* @author Patrik Jansson
*/

public class Schema 
{
	private int ID;
	private int mondayStart;
	private int mondayEnd;
	private int tuesdayStart;
	private int tuesdayEnd;
	private int wednesdayStart;
	private int wednesdayEnd;
	private int thursdayStart;
	private int thursdayEnd;
	private int fridayStart;
	private int fridayEnd;

	
	
	public Schema()
	{}
	
	
	public Schema(int id, int mondayStart, int mondayEnd, int tuesdayStart, int tuesdayEnd, int wednesdayStart, int wednesDayEnd,int thursdayStart, int thursdayEnd, int fridayStart, int fridayEnd)
	{
		this.ID = id;
		this.mondayStart = mondayStart;
		this.mondayEnd = mondayEnd;
		
		this.tuesdayStart = tuesdayStart;
		this.tuesdayEnd = tuesdayEnd;
		
		this.wednesdayStart = wednesdayStart;
		this.wednesdayEnd = wednesDayEnd;
		
		this.thursdayStart = thursdayStart;
		this.thursdayEnd = thursdayEnd;
		
		this.fridayStart = fridayStart;
		this.fridayEnd = fridayEnd;
	
	}
	
	
	public int getID()
	{
		return this.ID;	
	}
	
	public int[] getMonday()
	{
		int [] schema = {0,0};
		schema[0] = this.mondayStart;
		schema[1] = this.mondayEnd;
		return schema;
		
	}
	
	
	public int[] getTuesday()
	{
		int [] schema = {0,0};
		schema[0] = this.tuesdayStart;
		schema[1] = this.tuesdayEnd;
		return schema;	
	}
	
	
	public int[] getWednesday()
	{
		int [] schema = {0,0};
		schema[0] = this.wednesdayStart;
		schema[1] = this.wednesdayEnd;
		return schema;	
	}
	
	
	public int[] getThursday()
	{
		int [] schema = {0,0};
		schema[0] = this.thursdayStart;
		schema[1] = this.thursdayEnd;
		return schema;	
	}
	
	
	public int[] getFriday()
	{
		int [] schema = {0,0};
		schema[0] = this.fridayStart;
		schema[1] = this.fridayEnd;
		return schema;	
	}
	
	
	public void setID(int id)
	{
		this.ID = id;
	}
	
	public void setMonday(int start, int end)
	{
		this.mondayStart = start;
		this.mondayEnd = end;
	}
	
	
	public void setTuesday(int start, int end)
	{
		this.tuesdayStart = start;
		this.thursdayEnd = end;	
	}
	
	
	public void setWednesday(int start, int end)
	{
		this.wednesdayStart = start;
		this.wednesdayEnd = end;	
	}
	
	
	public void setThursday(int start, int end)
	{
		this.thursdayStart = start;
		this.thursdayEnd = end;	
	}
	
	
	public void setFriday(int start, int end)
	{
		this.fridayStart = start;
		this.fridayEnd = end;	
	}
	

}
